package com.example.mvitest.mvi.repository


class DataRepository {

    companion object{
        val instance by lazy(LazyThreadSafetyMode.SYNCHRONIZED) { DataRepository() }
    }

    fun fetchData():List<String>{
        val list = mutableListOf<String>()
        for (i in 0..10){
            list.add("测试$i")
        }
        return list.toList()
    }

    fun refreshData(count:Int):List<String>{
        val list = mutableListOf<String>()
        for (i in count..10+count){
            list.add("测试$i")
        }
        return list.toList()
    }
}